package com.yuju.enums;

/**
 * 类名：SeqCodeEnum  <br />
 *
 * 功能：编码类型枚举
 *
 * @author : xuehj <br />
 * @Date : 2017年12月5日 下午2:00:14  <br />
 * @version : 1.1 <br />
 */
public enum SeqCodeEnum {
	HOTEL_CODE("HOTEL_CODE", "酒店编码"),
	DEPT_CODE("DEPT_CODE", "部门编码"),
	EMP_CODE("EMP_CODE", "员工编码"),
	RESERVE_CODE("RESERVE_CODE", "预订单编码"),
	ROOM_ORDER_CODE("ROOM_ORDER_CODE", "房间订单编码"),
	DUMB_ROOM_ORDER_CODE("DUMB_ROOM_ORDER_CODE", "哑房账订单编码"),
	ACCOUNT_CODE("ACCOUNT_CODE", "账务编码"),
	DJ_CODE("DJ_CODE", "订金编码"),
	SK_CODE("SK_CODE", "收款编码"),
	TK_CODE("TK_CODE", "退款编码"),
	NS_CODE("NS_CODE", "NOWSHOW编码"),
	YJ_CODE("YJ_CODE", "押金编码"),
	MD_CODE("MD_CODE", "免单编码"),
	QT_CODE("QT_CODE", "其他编码"),
	YSK_CODE("YSK_CODE", "预收款编码"),
	DZ_CODE("DZ_CODE", "单位支付编码"),
	ZZ_CODE("ZZ_CODE", "中介支付编码"),
	HZ_CODE("HZ_CODE", "会员支付编码"),
	TZ_CODE("TZ_CODE", "他人支付编码"),
	DS_CODE("DS_CODE", "单位结算编码"),
	ZS_CODE("ZS_CODE", "中介结算编码"),
	XSD_CODE("XSD_CODE", "销售点编码"),
	YSFF_CODE("YSFF_CODE", "夜审房费编码"),
	JSFF_CODE("JSFF_CODE", "加收房费编码"),
	XTJF_CODE("XTJF_CODE", "系统计费编码"),
	NSSF_CODE("NSSF_CODE", "NOSHOW收费编码"),
	GDF_CODE("GDF_CODE", "个人代付编码"),
	DDF_CODE("DDF_CODE", "单位代付编码"),
	ZDF_CODE("ZDF_CODE", "中介代付编码"),
	HDF_CODE("HDF_CODE", "会员代付编码"),
	CLASS_CODE("CLASS_CODE", "班次编码"),
	GROUP_CODE("GROUP_CODE", "集团编码"),
	SERVICE_ORDER_CODE("SERVICE_ORDER_CODE", "服务订单编码"),
	REFUND_ORDER_CODE("REFUND_ORDER_CODE", "退款订单编码");
	
	private String code;
	private String name;
	
	SeqCodeEnum(String code, String name) {
		this.code = code;
		this.name = name;
	}
	
	public static String getDescByCode(String code) {
		for (SeqCodeEnum enume : SeqCodeEnum.values()) {
			if (enume.getCode().equals(code)) {
				return enume.getName();
			}
		}
		return "未知枚举项";
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
